(function () {
    angular.module('app')
        .factory('OrderListFactory',fn);
    function fn(urlCnst) {
        var self = {};
        self.getOrderListByUsername = function (username, cb) {
            urlCnst.get('order-list' + username, cb);
        };
        return self;

    }
})();